package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisListHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_competition", autoResultMap = true)
@Data
public class CompetitionDO extends BaseDO {
    //赛题名称
    private String title;
    //任务内容
    private String content;
    //指标要求
    @TableField(typeHandler = MybatisListHandler.class)
    private List<String> metrics;
    //质量标准
    @TableField(typeHandler = MybatisListHandler.class)
    private List<String> qualityStandards;
    //其他要求
    @TableField(typeHandler = MybatisListHandler.class)
    private List<String> otherReq;
    //成果形式
    @TableField(typeHandler = MybatisListHandler.class)
    private List<String> outcomeFormat;
    //知识产权归属
    private String ipOwner;
    //成果评审方式
    private String evaluationMethod;
    //开始时间
    private String startTime;
    //结束时间
    private String endTime;
    //父id
    private Integer competitionParentId;
    //赛题类型  1：人工智能  2:移动应用  3： 机器人  4：大数据
    private  Integer type;
    //1-代表公开,2-代表私有
    private  Integer isPublic;
    @Field(name = "sort_id", type = FieldType.Text, analyzer="ik_max_word")
    private  String sortId;

}


